<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core" template="/layout/dialogLayout.xhtml">

	<ui:param name="param_panelTitle" value="会员管理>会员回访" />
	<ui:param name="param_panelWidth" value="540px" />
	<ui:param name="id" value="callback" />

	<ui:define name="content">
		<ui:decorate template="/components/formTemplate.xhtml">
			<ui:param name="param_headerTitle" value="会员回访" />
			<ui:define name="fields">
				<rg:selectOne id="taskStatus" required="true" label="回访情况" value="#{callbackRecordAction.excuteType}">
					<f:selectItem itemValue="normal" itemLabel="正常" />
					<f:selectItem itemValue="delay" itemLabel="延期回访" />
				</rg:selectOne>

				<rg:inputArea id="content" required="true" label="回访内容" textStyle="width:368px;height:256px;"
					value="#{callbackRecordAction.callBackRecord.content}" />
				<rg:calendar id="executionTime" value="#{callbackRecordAction.expectedTime}" label="执行时间"
					datePattern="yyyy-MM-dd HH:mm">
					<rg:relevant for="taskStatus" relevantValue="^(delay)$" type="show" />
				</rg:calendar>
			</ui:define>
			<ui:define name="panelButton">
				<a:commandButton styleClass="button" value="#{messages.btn_complete}" onclick="UI.instance.showMask()"
					oncomplete="UI.instance.reRender('reRenderCallBackRecordTable');" action="#{callbackRecordAction.add()}"
					reRender="#{id}Scripts,globalMessage" />
				<input type="button" class="button" value="#{messages.btn_cancel}"
					onclick="javascript:DialogLayout.instance.close();" />
			</ui:define>
		</ui:decorate>
	</ui:define>
</ui:composition>